home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Source Code
/
Libraries
/
VideoToolbox 96.06.15
/
VideoToolboxSources
/
TitleBarHeight.c
< prev
next >
Wrap
Text File
|
1993-02-23
|
427b
|
23 lines
/*
TitleBarHeight.c
Returns the height of a window's title bar, in pixels.
HISTORY:
12/29/91 dgp extracted from Zoom.c
*/
#include "VideoToolbox.h"
int TitleBarHeight(WindowPtr window)
{
WindowPtr oldPort;
int headRoom;
Point pt;
GetPort(&oldPort);
SetPort(window);
pt.v=window->portRect.top;
LocalToGlobal(&pt);
headRoom=pt.v-1-(*((WindowPeek)window)->strucRgn)->rgnBBox.top;
SetPort(oldPort);
return headRoom;
}